package com.example.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

//@Component
//@Configuration
public class DbConfig {
    @Bean("druidDataSource")
    public DruidDataSource dataSource(){
        return new DruidDataSource();
    }
}
